<?php
namespace Admin\Controller;
use Common\Controller\BaseController;
/**
 * 数据统计
 * Class DataCountController
 * @package Admin\Controller
 */
class DataCountController extends BaseController{
    const modelName = CONTROLLER_NAME;
    protected function _initialize(){
        parent::_initialize();
        $this->checkAuth();
    }

    /**
     * 列表
     */
    public function index(){
        //总用户数
        $User = M('users');
        $data['total'] = $User->count();

        //新增用户数
        $data['new_user'] = 78;

        //活跃用户数
        $data['active_user'] = 2242;

        //今日充值量
        $data['active_user'] = 78;

        //累计充值量
        $data['cumulative_recharge'] = 205451;

        //今日收益
        $data['today_profit'] = 6541;

        //累计收益
        $data['cumulative_profit'] = 125400;

        $this->showView($data);
    }





}
?>
